<?php
session_start();
include_once("../function.php");
include_once("../class/bonus_class.php");
include_once("../class/system_class.php");
include_once("../class/txczzh_class.php");
$manager_id = $_GET['Manager_ID'];
if($manager_id != null){
    if($_SESSION['to_admin'] == null){
        alert("请勿非法操作!!!");
        return ;
    }
    if(checkID($manager_id)){alert("请勿非法操作!!!");return ;}
    $us=getMemberbyID($manager_id);
    $_SESSION['ID']=$us['id'];
    $_SESSION['nickname']=$us['nickname'];
    $_SESSION['username']=$us['username'];
    $_SESSION['userid']=$us['userid'];
    $_SESSION['isboss']=$us['isboss'];
    $_SESSION['sclogin']=$us['sclogin'];
    $_SESSION['bdid']=$us['bdid'];
    $_SESSION['isbd']=$us['isbd'];
    $_SESSION['bdlevel']=$us['bdlevel'];
}
include("check.php");
date_default_timezone_set('PRC');
$_system=new system_class();
$system=$_system->system_information(1);
$us=getMemberbyID($_SESSION['ID']);
$ul=ulevel($us['ulevel']);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>淘车邦汽车有奖快销平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <link href="css/style1.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="./awesome/css/font-awesome.min.css"/>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/work.js"></script>
    <script  type="text/javascript">
            function SetUrl(url)
            {

                if (url.charAt(url.length-1)=="p")
                {
                    location.href = url;
                }else{
                    location.href = 'test.php?yid='+url;
                }

            }


    </script>

</head>
<body style="font-size: 0.6rem">
<!--xinde-->
<div class="myhearder">
    <div class="person">
        <!--<a href="">-->
        <div class="fl personicon">
            <div class="personicon">
                <img src="./images/logo.png"/>
            </div>
        </div>
        <div class="fl lors" style="margin-top: 10px;">
            <span style="font-size:40px;"> <?=$_SESSION['nickname']?></span><br/>
            <span style="font-size:30px;">     <p>级别：<?php if($us['ulevel2']==0){  echo $ul['lvname'];}else{ echo $us['fathername2'];}?></p></span>
            <span style="font-size: 30px;">购车状态： <?php if($us['istiche']==1){?>已购车<?php }else{?>未购车<?php }?></span><br/>
<!--            <if condition="$first_nickname neq ''">-->
<!--                <br />-->
<!--                <span style="font-size:20px">由({$first_nickname})推荐</span>-->
<!--            </if>-->
        </div>
        <!--</a>-->
    </div>
    <div class="set">
        <!--设置-->
        <a class="setting"  href="javascript:SetUrl('2')"><i></i></a>

    </div>
    <div class="scgz">
        <ul>
            <li>
                <a>
                    <h2><?=$us['area1']?></h2>
                    <p>左区业绩</p>
                </a>
            </li>
            <li>
                <a>
                    <h2><?=$us['area2']?></h2>
                    <p>右区业绩</p>
                </a>
            </li>
        </ul>
    </div>
</div>

<div class="floor my p">
    <div class="content">

        <!--资金管理-s-->
        <div class="floor myorder ma-to-20 p">
            <div class="content30">
                <div class="order">
                    <div class="fl">
                        <img src="./images/mwallet.png"/>
                        <span>我的钱包</span>
                    </div>
                    <div class="fr">
                        <!--<a href="bankrollmm.html">-->
                        <a href="javascript:SetUrl('48')">
                            <span>业绩管理</span>
                            <i class="Mright"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="floor w3">
            <ul>
                <li>
                    <a>
                        <h2><?=$us['mey']?></h2>
                        <p>奖金余额</p>
                    </a>
                </li>
                <li>
                    <a>
                        <h2> <?=$us['gwb']?></h2>
                        <p>购车定金</p>
                    </a>
                </li>
                <li>
                    <a >
                        <h2><?=$us['wlf']?></h2>
                        <p>购物积分</p>
                    </a>
                </li>


           <!--     <li>
                    <a>
                        <h2><?/*=$us['pv']*/?></h2>
                        <p>实体基金</p>
                    </a>
                </li>-->
                <li>
                    <a>
                        <h2><?=$us['cfxf']?></h2>
                        <p>购车基金</p>
                    </a>
                </li>
    <!--            <li>
                    <a>
                        <h2><?/*=$us['cfxf']*/?></h2>
                        <p>创投基金</p>
                    </a>
                </li>-->
                <li>
                    <a>
                        <h2><?=$us['zsq']?></h2>
                        <p>报单币</p>
                    </a>
                </li>
            </ul>
        </div>
        <!--资金管理-e-->

        <div class="floor list7 ma-to-20">
            <if condition="$tpshop_config['distribut_switch'] eq 1"></if>
     <!--       <div class="myorder p">
                <div class="content30">
                    <a href="ulevelup.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w10.png"/>
                                <span>原点升级</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <div class="myorder p">
                <div class="content30">
                    <a href="ulevelup2.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w2.png"/>
                                <span>原点复投</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>-->
            <div class="myorder p">
                <div class="content30">
                    <a href="register.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w4.png"/>
                                <span>注册代理商</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
<!--            <div class="myorder p">
                <div class="content30">
                    <a href="treeview.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w1.png"/>
                                <span>推荐系统</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>-->
<!--            --><?php /*if($us['isbd']==2){
            */?>
            <div class="myorder p">
                <div class="content30">
                    <a href="wlt2.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w1.png"/>
                                <span>个人系统</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
  <!--              --><?php
/*            }*/?>
            <div class="myorder p">
                <div class="content30">
                    <a href="chongzhi.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w5.png"/>
                                <span>支付购车定金</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <?php  if($system['isb3']==1){ ?>
            <div class="myorder p">
                <div class="content30">
                    <a href="zhuanzhang.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w5.png"/>
                                <span>会员转账</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <?php }?>
            <?php  if($system['isb2']==1){ ?>
            <div class="myorder p">
                <div class="content30">
                    <a href="zhuanhuan.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w5.png"/>
                                <span>货币转换</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <?php }?>
            <div class="myorder p">
                <div class="content30">
                    <a href="tixian.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w10.png"/>
                                <span>奖金提现</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <?php if($us['isbd']==0){
                ?>
                <div class="myorder p">
                    <div class="content30">
                        <a href="sqfwzx.php">
                            <div class="order">
                                <div class="fl">
                                    <img src="./images/w11.png"/>
                                    <span>申请服务中心</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <?php
            }?>
            <?php if($us['isbd']==2){
                ?>
            <div class="myorder p">
                <div class="content30">
                    <a href="jihuo.php">
                        <div class="order">
                            <div class="fl">
                                <img src="./images/w11.png"/>
                                <span>激活会员</span>
                            </div>
                            <div class="fr">
                                <i class="Mright"></i>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
                <?php
            }?>
<!--                        <div class="myorder p">
                            <div class="content30">
                                <a href="">
                                    <div class="order">
                                        <div class="fl">
                                            <img src="./images/w7.png"/>
                                            <span>兑换油卡</span>
                                        </div>
                                        <div class="fr">
                                            <i class="Mright"></i>
                                        </div>
                                    </div>
                                </a>
                            </div>
                        </div>-->
<!--            <div class="myorder p">-->
<!--                <div class="content30">-->
<!--                    <a href="">-->
<!--                        <div class="order">-->
<!--                            <div class="fl">-->
<!--                                <img src="./images/w7.png"/>-->
<!--                                <span>公司官网</span>-->
<!--                            </div>-->
<!--                            <div class="fr">-->
<!--                                <i class="Mright"></i>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </a>-->
<!--                </div>-->
<!--            </div>-->


            <!--订单管理模块-s-->
            <div class="floor myorder ma-to-20 p">
                <div class="content30">
                    <div class="order">
                        <div class="fl">
                            <img src="./images/mlist.png"/>
                            <span>我的订单</span>
                        </div>
                        <div class="fr">
                            <a href="javascript:SetUrl('29')">
                                <span>全部订单</span>
                                <i class="Mright"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="setting">
        <div class="close">
            <?php
            $user_agent = $_SERVER['HTTP_USER_AGENT'];
            if (strpos($user_agent, 'MicroMessenger') === false) {
                echo '<a href="../mobileIndex.php" id="logout">安全退出</a>';
            } else {
                echo '<a href="../wei_exist.php" id="logout">安全退出</a>';
            }
            ?>

        </div>
    </div>
</div>
<!--底部导航-start-->
<?php include_once ("public/footer_nav.html")?>
<script src="./js/style.js" type="text/javascript" charset="utf-8"></script>
<!--底部导航-end-->


<!--footer end -->
<script type="text/javascript" src="qqkefu1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="qqkefu1/lrkf_blue1.css">
<script src="qqkefu1/lrkf.js"></script>

<?php

?>
<script>
//    $(function(){
//        /*皮肤编号 lrkf_blue1 无图版，lrkf_blue2 图片版，更多皮肤敬请期待 懒人qq客服 - http://www.51xuediannao.com/qqkefu/*/
//        $("#lrkfwarp").lrkf({
//                kftop:'140',				//距离顶部距离
//                //btntext:'客服在线',			//默认为 客服在线 四个字，如果你了解css可以使用图片代替
//                defshow:false,			//如果想默认折叠，将defshow:false,的注释打开，默认为展开
//                //position:'absolute',		//如果为absolute所有浏览器在拖动滚动条时均有动画效果，如果为空则只有IE6有动画效果，其他浏览器
//                qqs:[
//                    {'name':'在线客服','qq':'<?//=$system['qq1']?>//'},			//注意逗号是英文的逗号
//                    {'name':'在线客服','qq':'<?//=$system['qq2']?>//'},
//                    {'name':'在线客服','qq':'<?//=$system['qq3']?>//'},
//                    {'name':'在线客服','qq':'<?//=$system['qq4']?>//'}			//注意最后一个{}不要英文逗号
//                ],
//                tel:[
//                    {'name':'24小时热线','tel':''},	//注意逗号是英文的逗号
//                    {'name':'售后','tel':''}
//                ],
//            <!--more:"http://www.gxtianou.com/"	-->			//>>
//    });
//
//    });
</script>
</body>
</html>
